//
//  RegistereSetPasswordViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/17.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "RegistereSetPasswordViewController.h"
#import "SetPasswordViewModel.h"

@interface RegistereSetPasswordViewController ()<SetPassworderDelegate>
@property (nonatomic,strong) SetPasswordViewModel * passwordViewModel;
@end

@implementation RegistereSetPasswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"注册";
    self.passwordViewModel = [[SetPasswordViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.passwordViewModel.set_pushType = self.p_type;
    self.passwordViewModel.delegate = self;
    [self.passwordViewModel.btnClickSignal sendNext:_reginInfroDic];
}

#pragma mark -- SetPassworderDelegate
-(void)loginSuccess{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

@end
